Webスピード改善 taca10
this is how to improve web connection,
プロトコルバッファ
htaccessで「gzip圧縮」を有効化
ブラウザキャッシュ
reverse proxy pattern
client -> proxy -> app
tatoeba
browser => nginx => rails
Some good HTTP reverse proxy servers:
- Apache (old)
- Lighttpd
- Nginx (most used now, probably)
- Litespeed
Use modules to load JS, put them anywhere (head, body or footer), they will load in parallel
<script type="module" src="..."></script>
Enable Compression
- gzip
Caching on the proxy or specific caching servings (Nginx/Varnish etc)
Use browser caching
- weak tags
Minify Resources (HTML, CSS, and JavaScript)
- better served by the proxy (Nginx/Apache etc)
Optimize Images
- better served by the proxy (Nginx/Apache etc)
Remove Render-Blocking JavaScript
Use a Content Delivery Network (CDN)
Use static pages where possible
- better served by the proxy (Nginx/Apache etc)
- app public folder
プロキシとは